<?php
    include('../init.php');
    $pid = $_REQUEST['pid'];
    $class = ' class="current"';
    $line2 = $db->queryUniqueObject('SELECT * FROM hs_product WHERE p_id='.$pid);
    $data['fImg'] = 'images/products/product/'.$line2->p_id.'/'.$line2->p_img;
    $data['fTitle'] = $line2->p_name;
    $data['fDetail'] = $line2->p_detail;
    $data['fId'] = $line2->p_id;
    echo json_encode($data);
?>